import { request } from '@/api/request'

// 查询解决方案列表
export function solutionList(params) {
    return request({
        url: '/system/solution/list',
        method: 'get',
        params
    })
}

// 查询云市场类型列表
export function marketType() {
    return request({
        url: '/system/market/type/list',
        method: 'get'
    })
}

// 查询云市场模板列表
export function marketList(data) {
    return request({
        url: '/system/market/list',
        method: 'post',
        data:data
    })
}

// 获取帮助表
export function helpList(params) {
    return request({
        url: '/system/help/list',
        method: 'get',
        params
    })
}

// 查询云市场模板列表
export function marketDetail(marketId) {
    return request({
        url: '/system/market/' + marketId,
        method: 'get',
    })
}

// 获取云市场一级规格
export function marketFirstDirectory(marketId) {
    return request({
        url: '/system/market/getFirstDirectory/' + marketId,
        method: 'get',
    })
}

// 获取云市场二级规格
export function marketSecondDirectory(data) {
    return request({
        url: '/system/market/getNextDirectory',
        method: 'post',
        data: data
    })
}

// 获取购买方式
export function marketBuyingMethod(data) {
    return request({
        url: '/system/market/getBuyingMethod',
        method: 'post',
        data: data
    })
}

// 获取协议 / 案例
export function articleList(data) {
    return request({
        url: '/system/article/list',
        method: 'post',
        data: data
    })
}

// 获取轮播图列表
export function bannerList() {
    return request({
        url: '/system/home/pic/list',
        method: 'get',
    })
}

// 获取新闻资讯列表
export function postNewsList(data = {}) {
    return request({
        url: '/system/news/list',
        method: 'post',
        data: data
    })
}

// 获取新闻资讯详情
export function newsDetails(newsId) {
    return request({
        url: '/system/news/getInfo/' + newsId,
        method: 'get',
    })
}

// 查询网站信息
export function webConfig(params) {
    return request({
      url: '/system/setting/list',
      method: 'get',
      params: params
    })
  }

  // 获取工单未读消息
export function getOrderNum(params) {
    return request({
      url: '/system/order/detail/getUnreadNum',
      method: 'get',
      params: params
    })
  }